package com.cg.mapper;

import com.cg.pojo.entity.EventEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EventMapper {
    void add(EventEntity event);
    void updateStatus_zf(Integer eventId);
    void updateStatus(@Param("eventId") Integer eventId, @Param("status") String status);
    void delete(Integer eventId);
    EventEntity getEventById(Integer eventId);
    List<EventEntity> searchEvents(Integer userId, String title, Integer categoryId, String level, String status);
//listByUser
     List<EventEntity> listByUser(Integer userId);
    void update(EventEntity event);
}